package moxl.parser.assemblers.doctypedecl;

import moxl.parser.assemblers.AssemblerStateException;

public class DocumentTypeDeclarationStateException extends AssemblerStateException
{
	private final DocumentTypeDeclarationAssemblerContext ctx;

	public DocumentTypeDeclarationStateException(DocumentTypeDeclarationAssemblerContext ctx)
	{
		super(ctx.getLocation());
		this.ctx = ctx;
	}

	@Override
	public String getMessage()
	{
		return createMessage(ctx.getState().toString(), ctx.getToken());
	}
}
